package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Dydx;

public interface DydxMapper {
    int deleteByPrimaryKey(String deviceid);

    int insert(Dydx record);

    int insertSelective(Dydx record);

    Dydx selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Dydx record);

    int updateByPrimaryKey(Dydx record);
    
    List<Dydx> selectDeviceList(@Param("name")String name,@Param("portalType")int portalType,@Param("medLineCodes")String[]medLineCodes,@Param("lineCode")String lineCode,@Param("companyids")String[] companyids,@Param("companyid")Long companyId,@Param("beginTime")String beginTime,@Param("endTime")String endTime,@Param("beginIndex")int beginIndex,@Param("pageSize")int pageSize);
    
    int selectDeviceCount(@Param("name")String name,@Param("portalType")int portalType,@Param("medLineCodes")String[]medLineCodes,@Param("lineCode")String lineCode,@Param("companyids")String[] companyids,@Param("companyid")Long companyId,@Param("beginTime")String beginTime,@Param("endTime")String endTime);
    
    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);
}